package com.itheima.demo02.Date;

import java.util.Date;

public class Demo02Date {
    public static void main(String[] args) {
        demo03();
    }



    public static void demo01() {
        Date date = new Date();
        System.out.println(date);//Sun Aug 09 23:10:20 CST 2020

    }
    public static void demo02() {
        Date d1 = new Date(0L);
        System.out.println(d1);
        Date d2 = new Date(158111111111L);
        System.out.println(d2);
    }
    public static void demo03(){
        Date date=new Date();
        System.out.println(date.getTime());
    }
}
